|
light6 2.2.0
|
This file contains API for Light 6 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | light6_t |
| Light 6 Click context object. More... | |
| struct | light6_cfg_t |
| Light 6 Click configuration object. More... | |
Enumerations | |
| enum | light6_return_value_t { LIGHT6_OK = 0 , LIGHT6_ERROR = -1 } |
| Light 6 Click return value data. More... | |
Functions | |
| void | light6_cfg_setup (light6_cfg_t *cfg) |
| Light 6 configuration object setup function. | |
| err_t | light6_init (light6_t *ctx, light6_cfg_t *cfg) |
| Light 6 initialization function. | |
| err_t | light6_default_cfg (light6_t *ctx) |
| Light 6 default configuration function. | |
| err_t | light6_generic_write (light6_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
| Light 6 I2C writing function. | |
| err_t | light6_generic_read (light6_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
| Light 6 I2C reading function. | |
| uint8_t | light6_get_int_pin (light6_t *ctx) |
| Light 6 get INT pin function. | |
| err_t | light6_check_communication (light6_t *ctx) |
| Light 6 Check Communication function. | |
| err_t | light6_set_als_config (light6_t *ctx, uint16_t config) |
| Light 6 Set ALS Configuration function. | |
| err_t | light6_get_als_config (light6_t *ctx, uint16_t *config) |
| Light 6 Get ALS Configuration function. | |
| err_t | light6_set_als_threshold (light6_t *ctx, uint16_t threshold_low, uint16_t threshold_high) |
| Light 6 Set ALS Threshold function. | |
| err_t | light6_get_als_threshold (light6_t *ctx, uint16_t *threshold_low, uint16_t *threshold_high) |
| Light 6 Get ALS Threshold function. | |
| err_t | light6_get_int_flag (light6_t *ctx, uint8_t *int_flag) |
| Light 6 Get Interrupt Flag function. | |
| err_t | light6_get_raw_data (light6_t *ctx, uint16_t *als_data, uint16_t *ir_data) |
| Light 6 Get Raw Data function. | |
| err_t | light6_get_data (light6_t *ctx, float *als_data, uint16_t *ir_data) |
| Light 6 Get Processed Data function. | |
This file contains API for Light 6 Click Driver.